package com.arges.web.domain.pojo;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * 患者基本信息
 * 
 * @author zxj
 *
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "p_basic_info")
public class Pat implements java.io.Serializable
{

	@Id
	@SequenceGenerator(name = "p_basic_info", sequenceName = "SEQ_P_BASIC_INFO")
	@GeneratedValue(generator = "p_basic_info", strategy = GenerationType.AUTO)
	private Long id;

	// 病历号
	@Column(name = "MRN")
	private String mrn;

	@Column(name = "NAME")
	private String name;

	// 身份证
	@Column(name = "ID_CARD")
	private String id_card;

	// 性别
	@Column(name = "SEX")
	private String sex;

	// 年龄
	@Column(name = "AGE")
	private String age;

	// 电话
	@Column(name = "PHONE")
	private String phone;

	// 地址
	@Column(name = "ADDR")
	private String addr;

	// 住院部日期
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "DATE")
	private Date date;

	public Long getId()
	{
		return id;
	}

	public void setId(Long id)
	{
		this.id = id;
	}

	public String getMrn()
	{
		return mrn;
	}

	public void setMrn(String mrn)
	{
		this.mrn = mrn;
	}

	public String getName()
	{
		return name;
	}

	public void setName(String name)
	{
		this.name = name;
	}

	public String getId_card()
	{
		return id_card;
	}

	public void setId_card(String id_card)
	{
		this.id_card = id_card;
	}

	public String getSex()
	{
		return sex;
	}

	public void setSex(String sex)
	{
		this.sex = sex;
	}

	public String getAge()
	{
		return age;
	}

	public void setAge(String age)
	{
		this.age = age;
	}

	public String getPhone()
	{
		return phone;
	}

	public void setPhone(String phone)
	{
		this.phone = phone;
	}

	public String getAddr()
	{
		return addr;
	}

	public void setAddr(String addr)
	{
		this.addr = addr;
	}

	public Date getDate()
	{
		return date;
	}

	public void setDate(Date date)
	{
		this.date = date;
	}

}
